package com.jeeplus.modules.sys.web;

import com.jeeplus.common.json.ReturnJson;
import com.jeeplus.core.web.BaseController;
import com.jeeplus.modules.sys.service.DatabaseLinkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Administrator
 * @title: DatabaseLink
 * @projectName JeePlus
 * @description: TODO
 * @date 2019/11/910:25
 */
@Controller
@RequestMapping(value = "${adminPath}/sys/DatabaseLink")
public class DatabaseLink extends BaseController {
    @Autowired
    DatabaseLinkService service;

    @RequestMapping(value = "GetMap")
    @ResponseBody
    public ReturnJson GetMap() {
        ReturnJson ajaxJson = new ReturnJson();
        Map<String, Object> map = new HashMap<>();
        map.put("data", service.GetMap());
        map.put("ver", service.GetMap());
        ajaxJson.setCode(200);
        ajaxJson.setInfo("响应成功");
        ajaxJson.setData(map);
        return ajaxJson;
    }
}
